/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package weixin.popular.message.handler;

import weixin.popular.bean.message.EventMessage;
import weixin.popular.bean.xmlmessage.XMLMessage;

/**
 * 消息处理器接口
 * 
 * 被关注：subscribe
 * 取消关注：unsubscribe
 * 文本：text
 * 图片：image
 * 语音：voice
 * 视频：video
 * 小视频：shortvideo
 * 地理位置：location
 * 连接消息：link
 * @author 张森
 */
public interface MessageHandler {
    boolean isSupport(EventMessage message);
    /**
     * 
     * @param message
     * @return XMLMessage|TemplateMessage|MassMessage
     */
    XMLMessage reply(EventMessage message);
}